package com.guanyong.admin.controllers.page;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;


/**
 * Created by Eric.Zhang on 2017/4/12.
 */
@Controller
public class home extends baseController {
//    @Autowired
//    UserHandle userHandle;
//    @Autowired
//    HWInfoService hwInfoService;

    @RequestMapping({"/", "/home", "/home/index"})
    String index(HttpServletRequest request) {

        return "/home/index";
    }

    @RequestMapping({"/test"})
    String test() {
//        THomeworkHwinfoModel model=new THomeworkHwinfoModel();
//        model.setfCompletecount(0);
//        model.setfCreatuser("58eedd679aad9e31f41f3993");
//        model.setfQuesids(",384764,388262,429178,443112,723886,");
//        model.setfState(Short.valueOf("2"));
//        model.setfLong(3600);
//        model.setfBegintime(new Date());
//        model.setfEndtime(new Date());
//        model.setfName("第三次教学测验");
//        model.setfTime(new Date());
//        model.setfSecids(",");
//        model.setfStucount(3);
//        model.setfSubject("02");
//
//        List<String> classes= new ArrayList<String>();
//        List<String> users= new ArrayList<String>();
//        classes.add("58f02b189aad9e4d542ca0c4");
//        users.add("58f03b029aad9e4ff06e6386");
//        users.add("58f5e4789aad9e0b5cf33805");
//        users.add("58f5e48d9aad9e0b5cf33806");
//        hwInfoService.insert(model,classes,users);
        return "home/test";
    }
}
